package java67_16;

public class KGCTeacher {
	private String name;
	private String school;

	public KGCTeacher(String n, String s) {
		name = n;
		school = s;
	}

	// 自我介绍
	public void selfIntro() {
		System.out.println("大家好,我叫" + name + ",来自 " + school);
	}

	// 上课
	public void giveLession() {
		System.out.println(name + "开始上课");
		System.out.println("知识点讲解,总结提问");
	}

	public String getName() {
		return name;
	}

	public String getSchool() {
		return school;
	}

	public String toString() {
		System.out.println("进入了toString方法");
		return "<<名字=" + name + ",学校=" + school + ">>";
	}
}
